package com.xncoding.freemarker.base;

import org.springframework.http.HttpStatus;
/**
 * idcoed:2025021116
 */
public enum ErrorCode implements BaseErrorCode {
    PAY_ERROR("支付错误","50001"),
    PAY_ERROR01("支付错误01","50002");
    private String code;
    private String value;
    // 构造方法
    ErrorCode(String code, String value) {
        this.code = code;
        this.value = value;
    }

    @Override
    public String getCode() {
        return this.code;
    }
    @Override
    public String getValue() {
        return this.value;
    }

    @Override
    public HttpStatus getStatus() {
        return null;
    }

    public static void main(String[] args) {
        System.out.println(ErrorCode.PAY_ERROR.getCode());
        System.out.println(ErrorCode.PAY_ERROR.getValue());
    }
}
